﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomerRelation.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Customer Relation</title>
    <%--<script type="text/javascript" src="assets/js/jquery.js"></script>

    <script type='text/javascript' src="assets/js/jquery.min.js"></script>--%>
    <script src="assets/js/jquery-1.4.2.js" type="text/javascript"></script>
    <script src="assets/jquery/jquery-ui.min.js" type="text/javascript"></script>
    <script src="assets/jquery/jquery.dialog.extra.js" type="text/javascript"></script>
    <script type='text/javascript' src="assets/js/jquery-tab.min.js"></script>
    <script type='text/javascript' src="assets/js/jquery.bgiframe.min.js"></script>
    <script type='text/javascript' src="assets/js/jquery.ajaxQueue.js"></script>
    <script type='text/javascript' src="assets/js/thickbox-compressed.js"></script>
    <script type='text/javascript' src="assets/js/jquery.autocomplete.js"></script>
    <script type='text/javascript' src="assets/js/jquery.ui.datepicker.js"></script>
    <script type='text/javascript' src='Assets/jquery/simple_colorpicker.js'></script>
    <script type='text/javascript' src="assets/js/common.js"></script>
    <script type='text/javascript' src="Assets/js/jquery-custom-1.0.0.js?v=0611"></script>
    <script type='text/javascript' src="Assets/js/zoom.js"></script>
    <script type='text/javascript' src="assets/js/DomesticPOR.js"></script>
    <script type='text/javascript' src="Assets/Js/encoder.js"></script>
    <script type='text/javascript' src="Assets/js/customerrelation.js"></script>
    <link href="assets/jquery/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="assets/css/jquery.autocomplete.css" />
    <link rel="stylesheet" type="text/css" href="assets/css/thickbox.css" />
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="assets/css/datepicker.css" />
    <link rel="stylesheet" href="Assets/css/EditTableCell.css" type="text/css" />
    <link rel="stylesheet" href="Assets/css/zoom.css" type="text/css" />
    <script type="text/javascript">
        var nPermissions = '<%=nPermissions %>';
        $(document).ready(function () {
            $("#txtFrom").datepicker({ dateFormat: "ddmmyy" });
            $("#txtTo").datepicker({ dateFormat: "ddmmyy" });
        });

        function doDelete(strID, strName) {
            if (confirm('Bạn có thực sự muốn xóa khách hàng "' + strName + '" ?')) {
                var value = $("#txtTabID").val();
                var vnpage = getUrlVars()['page_number'];
                if (vnpage)
                    window.location.href = "CustomerRelation.aspx?tid=" + value + "&action=delete&ID=" + strID + "&page_number=" + vnpage;
                else
                    window.location.href = "CustomerRelation.aspx?tid=" + value + "&action=delete&ID=" + strID;
            }
        }

        function OpenCustomer(sender, url) {
            if ($.trim($("#btnsave").text()) == "Edit") {
                window.open(url, "customer", "height:400,top=0,toolbar=no,directories=no,location=no,menubar=no,status=no");
            }
        }
        function GetTabID() {
            var value = $("#txtTabID").val();
            return value;
        }
        function openCustomerEdit(sId) {
            var value = $("#txtTabID").val();
            var url = 'CustomerRelation.Edit.aspx?tid=' + value;
            if (sId > 0)
                url += '&id=' + sId;
            //poUpWindow(url);
            //var vnpage = getUrlVars()['page_number'];
            if (pageno && pageno > 1) {
                url += "&page_number=" + pageno;
            }
            window.open(url, 'customerRelationEdit', 'width=1100,height=600,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
        }
        function doMoveList(sId) {
            var value = $("#txtTabID").val();
            var url = 'CustomerRelation.Move.aspx?tid=' + value;
            if (sId) {
                if (sId > 0)
                    url += '&id=' + sId;
                window.open(url, 'customerRelationmove', 'width=500,height=300,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
            }
            else {
                var listCust = $("#txtListCustomerID").val();
                if (listCust != ";")
                    window.open(url, 'customerRelationmove', 'width=500,height=300,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
                else {
                    alert("Bạn phải chọn ít nhất một khách hàng!");
                }
            }
        }
        function doMoveToStore(sId, action) {
            var value = $("#txtTabID").val();
            var url = 'CustomerRelation.MoveToStore.aspx?tid=' + value;
            if (sId) {
                if (sId > 0)
                    url += '&id=' + sId + "&action=" + action;
                window.open(url, 'customerRelationmoveToStore', 'width=500,height=300,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
            }
        }
        function doAssignCustomerToUser(sId) {
            var value = $("#txtTabID").val();
            var url = 'CustomerRelation.Assign.aspx?tid=' + value;
            if (sId) {
                if (sId > 0)
                    url += '&id=' + sId;
                window.open(url, 'CustomerAssign', 'width=800,height=300,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
            }
            else {
                var listCust = $("#txtListCustomerID").val();
                if (listCust != ";")
                    window.open(url, 'CustomerAssign', 'width=800,height=300,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
                else {
                    alert("Bạn phải chọn ít nhất một khách hàng!");
                }
            }
        }
        function doImportCustomer() {
            var url = 'ImportCustomer.aspx?tid=3';
            window.open(url, 'ImportCustomer', 'width=500,height=300,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
        }
        function doCheckBulkDelete() {
            var listCust = $("#txtListCustomerID").val();
            if (listCust != ";") {
                if (confirm('Bạn có thực sự muốn xóa?')) {
                    var value = $("#txtTabID").val();
                    var vnpage = getUrlVars()['page_number'];
                    if (vnpage)
                        window.location.href = "CustomerRelation.aspx?tid=" + value + "&action=bulkdelete&page_number=" + vnpage + "&listCust=" + listCust;
                    else
                        window.location.href = "CustomerRelation.aspx?tid=" + value + "&action=bulkdelete" + "&listCust=" + listCust;
                    return true;
                }
                else {
                    return false;
                }
            }
            else {
                alert("Bạn phải chọn ít nhất một khách hàng!");
                return false;
            }
            return false;
        }
        function doMoveCustomerToStore(action) {
            var listCust = $("#txtListCustomerID").val();
            if (listCust != ";") {
                if (confirm('Bạn có thực sự muốn chuyển khách hàng đã chọn vể ' + action + '?')) {
                    var value = $("#txtTabID").val();
                    var vnpage = getUrlVars()['page_number'];
                    if (vnpage)
                        window.location.href = "CustomerRelation.aspx?tid=" + value + "&action=" + action + "&page_number=" + vnpage + "&listCust=" + listCust;
                    else
                        window.location.href = "CustomerRelation.aspx?tid=" + value + "&action=" + action + "" + "&listCust=" + listCust;
                    return true;
                }
                else {
                    return false;
                }
            }
            else {
                alert("Bạn phải chọn ít nhất một khách hàng!");
                return false;
            }
            return false;
        }
        function doSelectCustomer(custid) {
            var obj = "#chbCustomer_" + custid;
            var checked = document.getElementById("chbCustomer_" + custid).checked;
            var currentList = window.document.forms.frmCustomers.txtListCustomerID.value;
            if (currentList == "")
                currentList = ";";
            var objCellReport = $($(obj).parent().parent());
            if (checked) {
                document.getElementById("txtListCustomerID").value = currentList + custid + ";";
                //                $(objCellReport).attr("changed", true);
                //                $("#btnMoveToPO").removeClass("disabled");
                //                $("#btnMoveToPO").addClass("button");
                //                $("#btnMoveToPO").removeAttr("disabled");
                //                $("#btnMoveToBlackList").removeClass("disabled");
                //                $("#btnMoveToBlackList").addClass("button");
                //                $("#btnMoveToBlackList").removeAttr("disabled");


            } else {
                document.getElementById("txtListCustomerID").value = currentList.replace(";" + custid + ";", ";");
                //                $(objCellReport).removeAttr("changed");
                //                $("#btnMoveToPO").removeClass("button");
                //                $("#btnMoveToPO").addClass("disabled");
                //                $("#btnMoveToPO").attr("disabled", "disabled");
                //                $("#btnMoveToBlackList").removeClass("button");
                //                $("#btnMoveToBlackList").addClass("disabled");
                //                $("#btnMoveToBlackList").attr("disabled", "disabled");

            }
        }
        function checkAll() {
            var tid = $("#txtTabID").val();
            var objName = "#checkall" + tid;
            var ajaxList = "#txtListCustomerIDAjaxLoad" + tid;
            var checked_status = $(objName).attr('checked');
            if (checked_status) {
                $("#txtListCustomerID").get(0).value = $(ajaxList).val();
                $(":checkbox.cbCustomer").attr('checked', true);
            }
            else {
                $("#txtListCustomerID").get(0).value = ';';
                $(":checkbox.cbCustomer").attr('checked', false);
            }
        }
    </script>
    <script type="text/javascript">
        var pageno = getUrlVars()["page_number"];
        $(document).ready(function () {
            var tid = getUrlVars()["tid"];

            $("#categorytab").tabs();
            if (!tid) {
                tid = "<%=tabSelectedID%>";
                //alert(tid);
                $("#categorytab").tabs("select", tid);
            }
            else {
                tid = tid.replace("#", "");
                $("#categorytab").tabs("select", tid);
            }

            $("#txtTabID").get(0).value = tid;
            $('#categorytab').bind('tabsselect', function (event, ui) {
                if ((ui.index + 1).toString() != $("#txtTabID").get(0).value) {
                    pageno = 1;
                }
                $("#txtTabID").get(0).value = ui.index + 1;
                $("#txtListCustomerID").get(0).value = ';';
                if ($("#txtTabID").val() != "2") $("#rdCustType").hide();
                if ($("#txtTabID").val() == "2") $("#rdCustType").show();
                // Objects available in the function context:
                //alert(ui.tab);     // anchor element of the selected (clicked) tab                   
                //alert(ui.panel);   // element, that contains the selected/clicked tab contents
                //alert(ui.index);   // zero-based index of the selected (clicked) tab                 
                //to change the browser URL to the given link location
                //pageurl="CustomerRelation.aspx?tid="+eval(ui.index+1); 
                //if(pageurl!=window.location){
                //window.history.pushState({path:pageurl},'',pageurl);
                //}
                //stop refreshing to the page given in
                //return false;
            });
            $("#txtDateFrom").datepicker();
            $("#txtDateTo").datepicker();
        });
    </script>
    <style type="text/css">
        .thheader
        {
            font-weight: bold;
            vertical-align: middle;
            text-align: center;
            font-size: 11px;
            border: 1px solid #ccc !important;
            line-height: 12px !important;
        }
        
        .tdboder
        {
            border: none !important;
        }
        
        .tdboder p
        {
            padding: 1px !important;
            width: 40px;
            border: 1px solid #ccc !important;
            border-bottom: 1px solid #ccc !important;
        }
        
        thead tr
        {
            max-height: 50px;
        }
        
        .colorblue
        {
            min-width: 60px;
            max-width: 60px;
            overflow: hidden;
            cursor: pointer;
            color: Blue;
            text-decoration: underline;
        }
        
        .colorhasactionplan
        {
            min-width: 60px;
            max-width: 60px;
            overflow: hidden;
            cursor: pointer;
            color: #FF7F50;
            text-decoration: underline;
        }
        
        #rdCustType
        {
            margin-top: 5px;
            border-bottom: 0px;
            float: left;
            padding-left: 20px;
            font-size: 9px;
            font-weight: bold;
            color: #FDD901;
        }
        
        #rdCustType tbody
        {
            margin-top: 5px;
            border-bottom: 0px;
        }
        
        #rdCustType td
        {
            background-color: #ABBBCB;
        }
        
        #rdCustType label
        {
            line-height: 20px;
            margin-top: -16px;
            padding: 0px 0px 0px 20px;
        }
        
        #rdCustType input
        {
            padding-left: 40px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <h2>
                QUAN HỆ KHÁCH HÀNG:&nbsp;
            </h2>
            <div class="clear">
            </div>
            <div class="content-box" zoomable="true">
                <form id="frmCustomers" runat="server">
                <div class="content-box-header; height:auto;">
                    <div style="padding-left: 5px; padding-top: 5px;">
                        <asp:LinkButton ID="lbtSwitchExpImp" runat="server" OnClick="lbtSwitchExpImp_Click"
                            Font-Bold="True" Font-Names="Tahoma" Font-Overline="False" Font-Strikeout="False"
                            Font-Size="14px" Font-Underline="True" Height="26px">HÀNG XUẤT KHẨU</asp:LinkButton>
                        &nbsp; &nbsp; &nbsp; &nbsp;<%if (nPermissions > 9)
                                                     { %><asp:CheckBox ID="chCustDuplicate" runat="server" ToolTip="Customers Duplicate"
                                                         AutoPostBack="true" OnCheckedChanged="chCustDuplicate_CheckedChanged" Text="" />
                        <asp:DropDownList class="cls" ID="drAdminUser" runat="server" Width="70px" TabIndex="16"
                            AutoPostBack="True" OnSelectedIndexChanged="drAdminUser_Selected">
                        </asp:DropDownList>
                        &nbsp;
                        <%} %>
                        <%if (Session["crSwitchExpImp"].ToString() == "0")
                          { %>
                        <asp:DropDownList class="cls" ID="drHsGoods" runat="server" Width="100px" TabIndex="16"
                            AutoPostBack="True" OnSelectedIndexChanged="drHsGoods_Selected">
                        </asp:DropDownList>
                        <asp:DropDownList class="cls" ID="drGoods" runat="server" Width="90px" TabIndex="16"
                            AutoPostBack="True" OnSelectedIndexChanged="drGoods_Selected">
                        </asp:DropDownList>
                        <%}
                          else
                          { %>
                        <asp:DropDownList class="cls" ID="drHsGoodsEx" runat="server" Width="100px" TabIndex="16"
                            AutoPostBack="True" OnSelectedIndexChanged="drHsGoodsEx_Selected">
                        </asp:DropDownList>
                        <asp:DropDownList class="cls" ID="drGoodsEx" runat="server" Width="90px" AutoPostBack="True"
                            OnSelectedIndexChanged="drGoodsEx_Selected">
                        </asp:DropDownList>
                        <%} %>
                        <asp:DropDownList ID="drCustUpdateTime" runat="server" AutoPostBack="true" TabIndex="17"
                            OnSelectedIndexChanged="drCustUpdateTime_SelectedIndexChanged" Visible="false">
                            <asp:ListItem Value="0" Text="Time"></asp:ListItem>
                            <asp:ListItem Value="5" Text="5 ngày"></asp:ListItem>
                            <asp:ListItem Value="6" Text="6 ngày"></asp:ListItem>
                            <asp:ListItem Value="7" Text="7 ngày"></asp:ListItem>
                            <asp:ListItem Value="15" Text="15 ngày"></asp:ListItem>
                            <asp:ListItem Value="25" Text="25 ngày"></asp:ListItem>
                            <asp:ListItem Value="30" Text="30 ngày"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList class="cls" ID="drPic" runat="server" Width="90px" TabIndex="16"
                            AutoPostBack="True" OnSelectedIndexChanged="drPic_Selected">
                        </asp:DropDownList>
                        <asp:DropDownList class="cls" ID="drPosition" runat="server" Width="90px" TabIndex="16"
                            AutoPostBack="True" OnSelectedIndexChanged="drPosition_Selected" Visible="false">
                        </asp:DropDownList>
                        <asp:TextBox ID="txtSearchRouter" runat="server" value="Luồng tuyến" Width="90px"
                            onclick="if(this.value=='Luồng tuyến'){this.value=''; this.style.color='#000'}"
                            onblur="if(this.value==''){this.value='Luồng tuyến'; this.style.color='#555'}"
                            Visible="false"></asp:TextBox>
                        <asp:TextBox ID="txtSearchCustomerName" runat="server" Width="100px" value="Tên khách hàng"
                            onclick="if(this.value=='Tên khách hàng'){this.value=''; this.style.color='#000'}"
                            onblur="if(this.value==''){this.value='Tên khách hàng'; this.style.color='#555'}"></asp:TextBox>
                        <asp:TextBox ID="txtAddress" runat="server" Width="100px" value="Địa chỉ" onclick="if(this.value=='Địa chỉ'){this.value=''; this.style.color='#000'}"
                            onblur="if(this.value==''){this.value='Địa chỉ'; this.style.color='#555'}" Visible="false"></asp:TextBox>
                        <asp:TextBox ID="txtFrom" CssClass="calendar-icon" runat="server" value="From" onclick="if(this.value=='From'){this.value=''; this.style.color='#000'}"
                            onblur="if(this.value==''){this.value='From'; this.style.color='#555'}" Width="75px"
                            Visible="false"></asp:TextBox>
                        <asp:TextBox ID="txtTo" CssClass="calendar-icon" runat="server" value="To" Width="75px"
                            Visible="false" onclick="if(this.value=='To'){this.value=''; this.style.color='#000'}"
                            onblur="if(this.value==''){this.value='To'; this.style.color='#555'}"></asp:TextBox>
                        <%--<asp:TextBox ID="txtPol" runat="server" Width="60px" value="POL" onclick="if(this.value=='POL'){this.value=''; this.style.color='#000'}"
                                onblur="if(this.value==''){this.value='POL'; this.style.color='#555'}"></asp:TextBox>
                            <asp:TextBox ID="txtpod" runat="server" Width="60px" value="POD" onclick="if(this.value=='POD'){this.value=''; this.style.color='#000'}"
                                onblur="if(this.value==''){this.value='POD'; this.style.color='#555'}"></asp:TextBox>--%>
                        <asp:DropDownList class="cls" ID="ddPol" runat="server" Width="100px" TabIndex="16"
                            AutoPostBack="True" OnSelectedIndexChanged="ddPol_Selected">
                        </asp:DropDownList>
                        <asp:DropDownList class="cls" ID="ddPod" runat="server" Width="100px" TabIndex="16"
                            AutoPostBack="True" OnSelectedIndexChanged="ddPod_Selected">
                        </asp:DropDownList>
                        <asp:TextBox ID="txtvolmonth" runat="server" Width="60px" value="Vol/Month" onclick="if(this.value=='Vol/Month'){this.value=''; this.style.color='#000'}"
                            onblur="if(this.value==''){this.value='Vol/Month'; this.style.color='#555'}"
                            Visible="false"></asp:TextBox>
                        &nbsp;<asp:Button ID="btnSearch" runat="server" Text="&nbsp;Seach&nbsp;" CssClass="button"
                            OnClick="btnSearch_Click" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div id="home_user27">
                    <div id="categorytab" class="categorytab_LRQKQQHVGLVXVNKIH title_fontend" title="Box Tab">
                        <div class="nav_header title_fontend" title="Box Title" style="width: auto; float: none;">
                            <input type="hidden" id="txtTabID" name="txtTablID" runat="server" />
                            <asp:TextBox ID="txtAdminUserID" runat="server" Style="display: none;"></asp:TextBox>
                            <input type="hidden" id="txtListCustomerID" name="txtListCustomerID" runat="server"
                                value=";" />
                            <div>
                                <div style="float: left;">
                                    <ul style="width: auto;">
                                        <li class="" style="border: 0;"><a href="AjaxFile/AjaxCustomerRelation.aspx?tid=1"
                                            class="title_fontend" title="cattab1">KHÁCH HÀNG ĐANG ĐI</a></li>
                                        <li class="" style="border: 0;"><a href="AjaxFile/AjaxCustomerRelation.aspx?tid=2"
                                            class="title_fontend" title="cattab2">KHÁCH HÀNG ĐEO ĐUỔI</a></li>
                                        <li class="" style="border: 0; display: none;"><a href="AjaxFile/AjaxCustomerRelation.aspx?tid=3"
                                            class="title_fontend" title="cattab3">KHÁCH HÀNG SƯU TẦM</a></li>
                                        <li class="" style="border: 0; display: none;"><a href="AjaxFile/AjaxCustomerRelation.aspx?tid=4"
                                            class="title_fontend" title="cattab4">KHÁCH HÀNG BỎ QUA</a></li>
                                    </ul>
                                    <div id="rdCustType">
                                        <asp:CheckBox ID="rdExtremePo" Text="EXTREME PO" runat="server" OnCheckedChanged="rdExtremePo_CheckedChanged"
                                            AutoPostBack="TRUE" />
                                        <asp:CheckBox ID="rdChaseBkg" GroupName="rdCustTYpe" Text="CHASE BKG" runat="server"
                                            OnCheckedChanged="rdChaseBkg_CheckedChanged" AutoPostBack="TRUE" />
                                    </div>
                                </div>
                                <div style="padding-right: 20px; padding-top: 4px; font-size: 16px; font-weight: bold;
                                    float: right; margin-top: 5px;">
                                    <a href="javascript:void(0);" style="" id="selectcolumn"></a>&nbsp; &nbsp;
                                    <%if (nPermissions >= 7)
                                      { %>
                                    <a class="button" href="#" onclick="openCustomerEdit();">Add New </a>
                                    <%} %>
                                    &nbsp; &nbsp; <a class="button" href="#" onclick="doMoveList();">Move </a>&nbsp;
                                    &nbsp;
                                    <%if (nPermissions >= 9)
                                      { %>
                                    <%--<input type="button" id="btnMoveToPO" value="Potential Cust" disabled="disabled"
                                        class="disabled" />
                                    <input type="button" id="btnMoveToBlackList" value="Black List" disabled="disabled"
                                        class="disabled" />--%>
                                    <a class="button" href="#" onclick="doMoveCustomerToStore('potentialcust');">Potential
                                        Cust </a>&nbsp; &nbsp; <a class="button" href="#" onclick="doMoveCustomerToStore('blacklist');">
                                            Black List </a>&nbsp; &nbsp; <a class="button" href="#" onclick="doAssignCustomerToUser();">
                                                Assign </a>&nbsp; &nbsp;
                                    <%} %>
                                    <%if (nPermissions > 7)
                                      { %>
                                    &nbsp; <a class="button" href="#" onclick="return doCheckBulkDelete();">Delete </a>
                                    <%} %>
                                    <%if (nPermissions >= 3)
                                      { %>
                                    &nbsp;&nbsp; <a class="button" id="btnsave" href="#">Edit</a>
                                    <%} %>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div>
                            <div id="cattab1" class="tab_content title_fontend" title="">
                                <img src="Assets/images/loading.gif" />
                                Loading... Please wait
                            </div>
                            <div id="cattab2" class="tab_content title_fontend" title="">
                                <img src="Assets/images/loading.gif" />
                                Loading... Please wait
                            </div>
                            <div id="cattab3" class="tab_content title_fontend" title="" style="display: none;">
                                <img src="Assets/images/loading.gif" />
                                Loading... Please wait
                            </div>
                            <div id="cattab4" class="tab_content title_fontend" title="" style="display: none;">
                                <img src="Assets/images/loading.gif" />
                                Loading... Please wait
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </div>
                    <script type="text/javascript">
                        jQuery(document).ready(function ($) { $('#categorytab').tabs(); });
                    </script>
                </div>
                <div class="clear">
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
